﻿@using BlueLotus7.Eden.KB.Models;
@using BlueLotus7.ArchiveSystem.Common;
@using BlueLotus7.Eden.Web;
@model DomainScopeUserGridControlModel
@{
    if (Model != null)
    {
  
    <text>
    <table id="userGrid" cellpadding="0" cellspacing="0" class="bluelotus7-grid">
        <thead>
            <tr>
                <th class="domain-scope-name">
                    Domain Scope
                </th>
                <th class="user-identity">
                    User Identity
                </th>
                <th class="description">
                    Description
                </th>
            </tr>
        </thead>
        <tbody>
            @{
        foreach (var user in Model.DomainScopeUsers)
        {
           
                <text>
                <tr>
                    <td class="domain-scope-name">
                        <a target="_blank" href="@(Url.Action("ViewScope", "DomainScope", new { area = "Management", key = user.DomainScope.Key }))">
                            @(Helper.ConvertToDisplayString(user.DomainScope.Name))</a>
                    </td>
                    <td class="user-identity">
                        <a target="_blank" href="@(Url.Action("ViewUser", "DomainScope", new { area = "Management", key = user.Key }))">@(Helper.ConvertToDisplayString(user.ThirdPartyIdentity))</a>
                    </td>
                    <td class="description">
                        @(Helper.ConvertToDisplayString(user.Description))
                    </td>
                </tr>
                </text>
        }
            }
        </tbody>
    </table>
    </text>

    }  
}
